Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatible with jax==0.4.36 #45

Merged
merged 2 commits into from
Dec 9, 2024
Merged

compatible with jax==0.4.36 #45

merged 2 commits into from
Dec 9, 2024

Conversation

chaoming0625
Copy link
Collaborator

This pull request includes multiple changes to improve code readability, simplify function definitions, and update method calls across various files in the brainstate package. The most important changes include refactoring functions, cleaning up imports, and updating progress bar handling.

close #44

Code readability improvements:

Function and method updates:

  • brainstate/compile/_make_jaxpr.py: Refactored _init_state_trace to _init_state_trace_stack, including a new method _new_jax_trace to handle different JAX versions, and updated calls to use the new method. [1] [2] [3]

Import cleanup:

Progress bar handling:

Example updates:

@chaoming0625 chaoming0625 merged commit c5be092 into main Dec 9, 2024
22 checks passed
@chaoming0625 chaoming0625 deleted the update branch December 9, 2024 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] 'jax.core' has no attribute 'thread_local_state' in 0.4.36 version of JAX
1 participant